package com.dy.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.dy.pojo.entity.DyTagEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @ClassName:
 * @Author: 仄言in
 * @Desctiption: (描述)
 * @Date: 2021/6/9 15:54
 * @Version 1.0 (版本)
 */
@Mapper
@Repository
public interface DyTagMapper extends BaseMapper<DyTagEntity> {
    /**
     * 查询10条tag数据
     * @return
     **/
    @Select("select * from dy_tag limit 10")
    List<DyTagEntity> selectTags();
}
